<h1>Podešavanja</h1>

<?= $this->Form->create('Settings', array('url' => '/admin/save')) ?>

    <? foreach ($data as $k=>$sett): ?>
    <? $s = $sett['Settings'] ?>
        <?= $this->Form->hidden("{$k}.Settings.id", array('value' => $s['id'])) ?>
        <?= $this->Form->label("{$k}.Settings.value", Settings::getLabel($s['key']) . ":") ?>
        <?= $this->Form->text("{$k}.Settings.value", array('value' => $s['value'], 'class'=>'large')) ?>
    <? endforeach ?>

<?= $this->Form->submit('Sačuvaj') ?>
<?= $this->Form->end() ?>
